-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add scatter plot #37
Add scatter plot #37
Conversation
Reviewer's Guide by SourceryThis PR adds a scatter plot widget to the perovskite ions app and reorganizes the documentation structure. The scatter plot visualizes the relationship between A cation molar mass and number of atoms, with structural type as a color marker. The documentation changes include improved organization, new how-to guides, and additional resources. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Pepe-Marquez - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
h: 6 | ||
w: 9 | ||
y: 0 | ||
x: .inf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): Invalid x coordinate value '.inf' in xxl layout
The x coordinate value '.inf' is invalid and could cause rendering issues. Please specify a valid numeric value.
from perovskite_solar_cell_database.apps.solar_cell_app import ( # type: ignore | ||
solar_cell_app, # noqa: F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (testing): Missing tests for the new scatter plot functionality
The PR adds a new scatter plot widget but there are no tests to verify its configuration and behavior. Consider adding tests that verify:
- The scatter plot widget is properly configured with the correct search quantities
- The layout parameters are correct for different screen sizes
- The autorange and marker settings work as expected
|
||
[<img src="assets/screenshot_nomad_app.png">](https://nomad-lab.eu/prod/v1/staging/gui/search/solarcells) | ||
It also contains a database of ions used in halide perovskites and a schema to create standarized perovskite composition entries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (typo): Fix typo: 'standarized' should be 'standardized'
It also contains a database of ions used in halide perovskites and a schema to create standarized perovskite composition entries. | |
It also contains a database of ions used in halide perovskites and a schema to create standardized perovskite composition entries. |
|
||
### Acknowledgments | ||
Special thanks to Jinzhao Li and all contributors who have made this project possible. | ||
This project is supported by the FAIRmat NFDI initiative and also by by the European Union as part of the SolMates project (Project Nr. 101122288). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (typo): Remove duplicate word 'by'
The sentence contains a duplicate 'by'. Consider revising to 'supported by the FAIRmat NFDI initiative and also by the European Union'
This project is supported by the FAIRmat NFDI initiative and also by by the European Union as part of the SolMates project (Project Nr. 101122288). | |
This project is supported by the FAIRmat NFDI initiative and also by the European Union as part of the SolMates project (Project Nr. 101122288). |
md: {minH: 8, minW: 12, h: 8, w: 12, y: 0, x: 0} | ||
sm: {minH: 8, minW: 12, h: 8, w: 12, y: 0, x: 0} | ||
type: periodictable | ||
- type: periodictable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (complexity): Consider using YAML anchors and aliases to define reusable layout configurations.
The layout configuration can be simplified using YAML anchors and aliases to reduce repetition while maintaining the same functionality. Here's how:
widgets:
- type: periodictable
scale: linear
search_quantity: results.material.elements
layout:
# Define base layout template
&base_layout
minH: 8
minW: 12
y: 0
x: 0
xxl:
<<: *base_layout
h: 9
w: 13
xl:
<<: *base_layout
h: 9
w: 12
lg: &standard_size
<<: *base_layout
h: 8
w: 12
md:
<<: *standard_size
sm:
<<: *standard_size
This approach:
- Defines common properties once using
&base_layout
- Uses
<<: *base_layout
to inherit common properties - Only specifies values that differ for each screen size
- Further reduces duplication by reusing identical sizes with
&standard_size
The same pattern can be applied to the scatter_plot widget's layout.
Summary by Sourcery
Add a scatter plot feature to the perovskite ions app and enhance the documentation with new guides and acknowledgments. Refactor widget layout configuration for better readability and update tests to accommodate changes.
New Features:
Enhancements:
Documentation:
Tests: